
{$header}<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">编辑对账订单 [ <a href="__URL__">返回列表</a> ]</h3>
<div id="result" class="result none"></div>
<form class="form-horizontal well" method='post' id="form1" action="__URL__/update/">
<table cellpadding=3 cellspacing=3 >
<tr>
	<td class="tRight" >订单号：</td>
	<td class="tLeft span12" >
		<?php  $order_id = M('Sale')->where('sale_no = "'.$vo['sale_no'].'"')->getField('id'); ?>
        <a href="__APP__/Sale/edit/id/{$order_id}" target="_blank">{$vo.sale_no}</a> 
        <span class="offset1">
        	原订单号:{$vo.mall_no} ({$vo.order_source_id|getModelName='Order_source'})
        	对账周期{:modList('Reconcile_cycle',$vo['cycle_id'],'span2','cycle_id')}
        </span>
        
    </td>
</tr>
<tr>
	<td class="tRight" >是否纯订单</td>
	<td class="tLeft" >{:configList( C('pure_lens'),$vo['is_pure'],'is_pure' )}<!--  对帐状态
           {:configList(C('reconcile_status'),$vo['reconcile_status'],'reconcile_status' )} -->
            <span class="offset1">原始订单对账状态:{:configList(C('reconcile_status'),$vo['mall_reconcile_status'],'mall_reconcile_status' )}</span>
        </td>
</tr>
<tr>
	<td class="tRight" ><span class="label label-warning">对账金额</span> </td>
	<td class="tLeft" >
            <input type="text"  name="check_total" value="{$vo.check_total}" >
            退款:<input type="text"  name="refund" value="{$vo.refund}" >
            退款编号:<input type="text"  name="refund_no" value="{$vo.refund_no}" >
        </td>
</tr>
<tr>
	<td class="tRight" >订单金额对比</td>
	<td class="tLeft" >
		<table class="table-bordered table">
			<tr> <th>对比项目</th> <th>我方（元）</th><th>原始订单（元）</th>	 </tr>
			<tr> <th>应收款</th> 
				<td><input type="text" name="should_pay" value="{$vo.should_pay}">  </td>
			    <td>   <input type="text" name="mall_should_pay" value="{$vo.mall_should_pay}">(实付款)  </td>
			</tr>
			<tr> <th>货款</th> 
				<td><input type="text" name="goods_money" value="{$vo.goods_money}">  </td>
			    <td>   -- </td>
			</tr>
			<tr> <th>运费</th> 
				<td><input type="text" name="logifee" value="{$vo.logifee}">  </td>
			    <td>   <input type="text" name="mall_logifee" value="{$vo.mall_logifee}">  </td>
			</tr>

        </table>
    </td>
</tr>

<tr>
	<td class="tRight" >订单摘要：</td>
	<td class="tLeft" >
        <textarea name="overview" value="" class="span9" rows="3">{$vo.overview}</textarea>
        <span class="alert alert-info">收货人+下单时间+商品明细</span>
    </td>
</tr>
<tr>
	<td class="tRight" >原始摘要：</td>
	<td class="tLeft" >
        <textarea name="mall_overview" value="" class="span9" rows="3">{$vo.mall_overview}</textarea>
    </td>
</tr>
<tr>
	<td class="tRight" >下单时间：</td>
    <td class="tLeft" >{$vo.create_time|toDate}
        </td>
</tr>
<tr>
	<td class="tRight" >发货时间：</td>
	<td class="tLeft" >{$vo.shipping_time|toDate}
        </td>
</tr>
<tr>
	<td class="tRight" >对账时间：</td>
    <td class="tLeft" >{$vo.reconcile_time|toDate}
        </td>
</tr>
<tr>
	<td class="tRight" >订单状态</td>
	<td class="tLeft" >
            {$vo.order_status|getConfigVal='Orderstatus'}   <span class="alert offset1 alert-info">原始状态:</span> {$vo.mall_order_status} 
        </td>
</tr>

<tr>
	<td class="tRight" >备注说明：</td>
	<td class="tLeft" ><textarea name="remark" rows="5" cols="15" class="large">{$vo.remark}</textarea></td>
</tr>
<tr>
	<td class="tRight" >经办人：</td>
	<td> {:modList('User',$_SESSION[C('USER_AUTH_KEY')])}
            
        </td>
</tr>
<tr>
	<td class="tRight">状态：</td>
	<td class="tLeft"><SELECT class="small bLeft"  name="status">
	<option value="1">启用</option>
	<option value="0">禁用</option>
	</SELECT></td>
</tr>
<tr>
	<td></td>
	<td class="center" width="300">
		<input type="hidden" value="{$vo.id}" name="id">
	<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 保存</button>
	<a class="btn btn-primary offset1" href="__URL__"><i class="icon-arrow-left icon-white"></i>返回</a>
	</td>
</tr>
</table>
</form>
</div>
</div>
<include file="Public:footer"/>
<load href="__PUBLIC__/Js/My97DatePicker/WdatePicker.js" />
